<?php
/**
 * Created by PhpStorm.
 * User: ewen
 * Date: 4/27/21
 * Time: 10:47 AM
 */

namespace app\common\model;


class XkSystemRule extends Common
{

    /**
     * 获取对应规则奖励的TXUSD数量
     * @param $rule_code
     * @return int|mixed
     */
    public static function getAwardNum($rule_code)
    {
        $num = self::where(['rule_code' => $rule_code])->value('coin_num');
        return $num ? $num : 0;
    }
}